﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="SingleTableList.aspx.cs" Inherits="ERPWebDemos.Forms.SingleTable.SingleTableList" Title="无标题页" %>
<%@ Register assembly="RuleCode.Common" namespace="RuleCode.Common" tagprefix="cc1" %>
<%@ Register assembly="RuleCode.Common" namespace="RuleCode.Controls" tagprefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head_in" runat="server">
    <script type="text/javascript">
        var tableName = "Users";
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_in" runat="server">



        <div id="FilterDiv"> 
            <div class="TableFilterDiv">
                <fieldset>
                    <legend>
过滤条件设置
                    </legend>
                                     
                            <cc1:RuleQueryTable ID="RuleQueryTable1" runat="server" 
                                onbuttonclick="RuleQueryTable1_ButtonClick" />

                                     
                </fieldset>
            </div> 
            <div class="FilterCollapseDiv" style =" text-align:center; padding-left:15%;">
                <a id="searchFilterAnchor" title ="展开/折叠 设置搜索条件" >展开/折叠</a>
            </div>         
        </div>
        <div id="DataDiv" style=" margin-top:5px;">       
            <asp:GridView ID="MainGridView" Width="100%" DataKeyNames="RECID" runat="server" AutoGenerateColumns="False" CssClass="MainGrid">
                  <Columns>
                      <asp:BoundField DataField="UserID" HeaderText="UserID"   SortExpression="UserID" />
                      <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" /> 
                      <asp:TemplateField HeaderText ="更新" HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
                        <ItemTemplate>
                             <table >
                                <tr>
                                    <td>
                                        <a href="#" recid='<%#Eval("RECID").ToString() %>' title="修改" class="OperatorAnchor editData">修改</a>
                                    </td>
                                    <td>
                                        <a href="#" recid='<%#Eval("RECID").ToString() %>' title="删除" class="OperatorAnchor deleteData">删除</a>
                                    </td>
                                </tr>
                             </table>     
                        </ItemTemplate>

<HeaderStyle Width="100px"></HeaderStyle>

<ItemStyle HorizontalAlign="Center" Width="100px"></ItemStyle>
                      </asp:TemplateField>                   
                  </Columns>  
                  <EmptyDataTemplate>
                      对不起，没有找到符合您要求的数据
                  </EmptyDataTemplate>
            </asp:GridView>  
            <div class="GridViewFooter" >             
                <a href="#" class="addData" title="增加新记录">增加新记录</a>                
            </div>
        </div>
        <div id="PageDiv" class="PageDiv">

            <cc2:WebPager ID="WebPager1" runat="server" ControlToPaginate="MainGridView" 
                onpageindexchanged="WebPager1_PageIndexChanged" />

        </div>

 


</asp:Content>
